<!--  -->
<template>
    <div>
        <ul v-for="(item,index) in user" :key="index"> 
            <!-- <li @click="test($event)">
                {{item}},{{index}}
            </li> -->
            <li @click="test(index)">
                {{item}},{{index}}
            </li>
        </ul>
        <!-- <input type="text" ref="666"> -->
    </div>
</template>

<script>
import utils from '@/assets/js/utils'
export default {
    props: {

    },
    data() {
        return {
            name:'wubo',
            age:28,
            user:['a','b','c','d','e','f','g']
        };
    },
    computed: {
        
    },
    created() {
        
    },
    mounted() {
        this.getDatas();
    },
    watch: {

    },
    methods: {
        // test(e){
        //     console.log(e.currentTarget.innerHTML)
        // },
        test(ide){
            this.user.splice(ide,1)
            // console.log(ide)
        },
getDatas(){
    console.log(111)
        var data = utils.getParams.call(this,{name:this.name,age:this.age})
        console.log(data)
        }
    },
    components: {

    },
};
</script>

<style scoped>

</style>
